package com.blog.backend.service;

import com.blog.backend.domain.BlogInfo;
import com.blog.backend.domain.DTO.BlogDTO;
import com.blog.backend.domain.DTO.UserDTO;
import com.blog.common.core.domain.R;

import java.util.List;

/**
 * @author Auman
 * @time 2024/4/28 10:09
 */
public interface BlogService {

    int newBlog(BlogDTO dto);

    int updateBlog(BlogDTO dto);

    R updateDelBlog(BlogDTO dto);

    List<BlogInfo> getBlog(UserDTO dto);

    List<BlogInfo> searchByInfo(BlogDTO dto);

    List<BlogInfo> getByTitle7Content(BlogDTO dto);
}
